/*
 * @Author: Shane
 * @Date: 2022-06-23 15:15:37
 * @LastEditTime: 2022-07-25 10:26:24
 * @LastEditors: Shane
 * @Description: 通用导航条
 * @FilePath: /app-user-center/Users/shane/Desktop/com/app-framework/common_widgets/lib/app_bar/app_bar.dart
 */

import 'package:flutter/material.dart';

import 'app_bar_base.dart';

class KKAppBar extends KKAppBarBase {
  KKAppBar(
    String title,
    BuildContext context, {
    Key? key,
    TextStyle titleTextStyle = const TextStyle(
      color: Color(0xFF303133),
      fontSize: 16,
      fontWeight: FontWeight.bold,
    ),
    Color? backgroundColor,
    double? elevation,
    Brightness? brightness,
    Widget? leading,
    double leadingWidth = 56,
    Function()? onTapCallback,
    List<Widget>? actions,
    PreferredSizeWidget? bottom,
  }) : super(
          context,
          key: key,
          title: Text(title, style: titleTextStyle),
          centerTitle: true,
          backgroundColor: backgroundColor,
          elevation: elevation ?? 0,
          leadingWidth: leadingWidth,
          leading: leading,
          onTapCallback: onTapCallback,
          actions: actions,
          bottom: bottom,
        );
}
